<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>登录</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
  <link rel="stylesheet" href="/login.css">
</head>
<body>
<div class="container">
  <div class="form-container">
    <h2>登录</h2>
    <form action="/login" method="POST">
      <input type="text" name="name" placeholder="用户名" required>
      <input type="password" name="password" placeholder="密码" required>
      <button type="submit">Login</button>
    </form>
    <p th:if="${error}" class="error-message" th:text="${error}"></p>
    <a href="/register" class="link">没有账户? 注册</a>
  </div>
</div>
</body>
</html>
